// 聊天相关类型定义

export interface ChatMessage {
  content: string
  sender: 'user' | 'chat' | 0 | 1
  time?: number
  timestamp?: number
  images?: ChatImage[] // 添加图片支持
  sessionId?: string
}

export interface ChatImage {
  name: string
  url: string
  file?: File
  size: number
}

export interface ModelOption {
  value: string
  label: string
  api: string
}

export interface ChatEmits {
  addMessage: [message: ChatMessage, isNewQueue?: boolean]
  switchComponent: [component: string, data: Record<string, unknown>]
  retractSidebar: []
}

export interface ChatProps {
  data?: string
}
